package com.qianfeng.service.impl;

import com.qianfeng.mapper.GoodsGateGoryMapper;
import com.qianfeng.pojo.GoodsCateGory;
import com.qianfeng.service.GoodsCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wang
 * @date 2021/9/22 18:21
 */
@Service
public class GoodsCategoryCategoryImpl implements GoodsCategoryService {

    @Autowired
    private GoodsGateGoryMapper goodsGateGoryMapper;
    @Override
    public List<GoodsCateGory> findAll() {
        return goodsGateGoryMapper.findAll();
    }

    @Override
    public void deleteGoodsById(Integer cateGoryId) {
        goodsGateGoryMapper.deleteGoodsById(cateGoryId);
    }

    @Override
    public void addGoods(GoodsCateGory goodsCateGory) {
        goodsGateGoryMapper.addGoods(goodsCateGory);
    }

    @Override
    public void updateGoods(GoodsCateGory goodsCateGory) {
        goodsGateGoryMapper.updateGoods(goodsCateGory);
    }

}
